package com.lwh.yygh.common.exception;

import com.lwh.yygh.common.result.Result;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author lwh
 * @date 2021/5/16 18:17
 */
@ControllerAdvice
public class Global {

    @ExceptionHandler(Exception.class)
    @ResponseBody
    public Result Global(Exception e){
        return Result.fail();
    }
}
